define(["jquery","layuiall","zTree","jqform","helper"],function ($,layui,zTree,jqform,helper) {
    controller = {
        set:function () {
            $("#test2").click(function () {
                uploadFiles({
                    url: '/admin/webupload/webuploader/multi/1/filetype/image/app/admin/tab/local',
                    file:function (res) {
                        var file = JSON.parse(res);
                        $("#app-photos").find("input[name='watermark").val(file[0].filepath);
                        $("#app-photos").find("img").attr("src",file[0].preview_url);
                        localStorage.removeItem("upload");
                    }
                });
            })
            jqform.init()

        },
    }
    return controller;
})